<template>
	<div>
		<router-view></router-view>
		<tabBarVue />
	</div>
</template>
<script>
	import tabBarVue from '/pages/components/tabbar/index.vue';
	export default {
		components:{tabBarVue},
		onLaunch: function() {
			console.log('App Launch')
			setTimeout(() => {
				uni.showTabBarRedDot({
					index: 1,
				});
				uni.setTabBarBadge({
					index: 3,
					text: '12'
				});
			}, 1000);
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "/wxcomponents/vant/common/index.wxss";
	@import "/static/iconfont/iconfont.css";
	@import "/static/icon/iconfont.css";
	page{
		background-color: #f7f7f7;
		font-family: PingFangSC-Medium, PingFang SC;
	}
	/*每个页面公共css */
</style>
